{% extends "base.html" %}

{% block titulo %} Administrador {% endblock %}

{% block javascript %}
<script type="text/javascript" src="{{MEDIA_URL}}js/Formulario.js"></script>
<script type="text/javascript" src="{{MEDIA_URL}}js/Campos.js"></script>

{% endblock %}

{% block quadro %}
  
    <form name="fAdministrador" method="post" action"/cadastro/administrador/adicionar_administrador/">
        <div style="margin: 0 auto;text-align: center;font-size:20px;" >
            <b> Cadastro de administrador </b>
        </div> 
        <table>
            {% if form.errors %}
                <div class="error">
                    <strong>Corrija os campos</strong>:
                    {% for field in form %}
                        {% if field.errors %}
                            {{ field.label }} - 
                        {% endif %}        
                    {% endfor %}
                </div>
            {% endif %}
            {{form}}
        </table>
        <label>
            <input type="submit" name="button" id="button" value="Cadastrar">
        </label>
    </form>

{% endblock %}